home *** CD-ROM | disk | FTP | other *** search
- class Background extends MovieClip
- {
- var sx;
- var sy;
- function Background()
- {
- super();
- this.sx = this._x;
- this.sy = this._y;
- }
- function jiggle(v)
- {
- var _loc2_ = v * 1000 / 50;
- if(Math.random() > 0.5)
- {
- this._x = this.sx + _loc2_;
- }
- else
- {
- this._x = this.sx - _loc2_;
- }
- if(Math.random() > 0.5)
- {
- this._y = this.sy + _loc2_;
- }
- else
- {
- this._y = this.sy - _loc2_;
- }
- }
- }
-